|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--javax.xml.transform.stream.StreamSource
Source for an input stream.
| Field Summary | |
static java.lang.String |
FEATURE
The feature name to tell if the transformer can handle stream input. |
| Constructor Summary | |
StreamSource()
Zero-arg constructor. |
|
StreamSource(java.io.File file)
Create a StreamSource with a given java.io.File. |
|
StreamSource(java.io.InputStream is)
Create a StreamSource with a given InputStream. |
|
StreamSource(java.io.InputStream is,
java.lang.String systemId)
Create a StreamSource with a given InputStream and system id (base URL). |
|
StreamSource(java.io.Reader reader)
Create a StreamSource with a given Reader. |
|
StreamSource(java.io.Reader reader,
java.lang.String systemId)
Create a StreamSource with a given Reader. |
|
StreamSource(java.lang.String systemId)
Create a StreamSource from a given system id (URL) |
|
| Method Summary | |
java.io.InputStream |
getInputStream()
Returns the input stream. |
java.lang.String |
getPublicId()
Returns the public identifier (URL). |
java.io.Reader |
getReader()
Returns the reader. |
java.lang.String |
getSystemId()
Returns the system identifier (URL). |
void |
setInputStream(java.io.InputStream is)
Sets the input stream. |
void |
setPublicId(java.lang.String publicId)
Sets the public identifier (URL). |
void |
setReader(java.io.Reader reader)
Sets the reader. |
void |
setSystemId(java.io.File file)
Sets the system identifier (URL) from a File. |
void |
setSystemId(java.lang.String systemId)
Sets the system identifier (URL). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String FEATURE
| Constructor Detail |
public StreamSource()
public StreamSource(java.io.File file)
file - the source file for the parser.public StreamSource(java.io.InputStream is)
is - the source stream.
public StreamSource(java.io.InputStream is,
java.lang.String systemId)
is - the source stream.systemId - the base url of the stream.public StreamSource(java.io.Reader reader)
reader - the source reader.
public StreamSource(java.io.Reader reader,
java.lang.String systemId)
reader - the source reader.public StreamSource(java.lang.String systemId)
systemId - the base url of the stream.| Method Detail |
public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream is)
public java.io.Reader getReader()
public void setReader(java.io.Reader reader)
public java.lang.String getSystemId()
getSystemId in interface Sourcejavax.xml.transform.Sourcepublic void setSystemId(java.lang.String systemId)
setSystemId in interface Sourcejavax.xml.transform.SourcesystemId - set the system id as a URLpublic void setSystemId(java.io.File file)
public java.lang.String getPublicId()
public void setPublicId(java.lang.String publicId)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||